#include "Animation.h"

using namespace std;
using namespace me;

Animation::Animation(string name, sf::Texture* texture): m_name(name), m_texture(texture)
{

}

Animation::~Animation()
{

}

void Animation::setTexture(sf::Texture* texture)
{
    m_texture = texture;
}

void Animation::setName(string name)
{
    m_name = name;
}
void Animation::addFrame(sf::IntRect frame)
{
    m_frames.push_back(frame);
}

sf::Texture* Animation::getTexture()
{
    return m_texture;
}
string Animation::getName()
{
    return m_name;
}
sf::IntRect Animation::getFrame(size_t n)
{
    return m_frames[n];
}
size_t Animation::getSize()
{

    return m_frames.size();
}
